export default function getQuery(url) {
    let o = {};
    if (window && window.URL) {
        let data = new URL(url).searchParams;
        data === null || data === void 0 ? void 0 : data.forEach((value, key) => {
            o.key = value;
        });
        return o;
    }
    return null;
}
